<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        echo "Hello World";
            require_once('/php-sdk/src/facebook.php');
           $config = array(
            'appId'  => '1144776035660804',
            'secret' => 'fd7a44a256a40a0c987d9a1c715f48f9');
            $facebook = new Facebook($config);
        
// Get User ID
            $user = $facebook->getUser();
            if($user){
                echo $user;
            }
            else {
                $login_Url=$facebook->getLoginUrl();
                //echo $login_Url;
                echo "Please <a href=".$login_Url.">Login</a>";
            }
                        
/*if ($user) {
  try {
    // Proceed knowing you have a logged in user who's authenticated.
    $user_profile = $facebook->api('/me');
  } catch (FacebookApiException $e) {
    error_log($e);
    $user = null;
  }
}*/
//echo "User name: ".$user;
        ?>
    </body>
</html>
